#include <typescommon.h>
#include <base64.h>
#include <hexstr.h>

#define HEX_STR_CHECK_SIZE (10)
int main()
{
    static uint8_t tmporg[HEX_STR_CHECK_SIZE];
    static uint8_t tmpenc[HEX_STR_CHECK_SIZE * 2];
    srand(time(NULL));
    for(int i = 0; i < sizeof(tmporg); i++)
    {
        logdebug("input val=0x%02x", tmporg[i] = rand());
    }
    cvtHex2str((const char *)tmporg, sizeof(tmporg), (char *)tmpenc, sizeof(tmpenc));
    logdebug("out str:%.*s!", (int)sizeof(tmpenc), tmpenc);
    return 0;
}
